﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： WeChartTrailEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-07-31
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
    /// <summary>
    ///微信用户行为轨迹数据实体  
    /// </summary>
    [PrimaryKey("WeChartTrailID")]
    public class WeChartTrail
    {
        ///<summary>
        ///微信用户行为轨迹
        ///</summary>
        public WeChartTrail()
        {
        }


        ///<summary>
        ///主键
        ///</summary>
        [Column("WeChartTrailID", "主键")]
        public int WeChartTrailID { get; set; }

        ///<summary>
        ///用户ID
        ///</summary>
        [Column("UserID", "用户ID")]
        public int UserID { get; set; }

        ///<summary>
        ///浏览标识(违章ID,问题ID,名片ID等)
        ///</summary>
        [Column("TrailIdentity", "浏览标识(违章ID,问题ID,名片ID等)")]
        public int TrailIdentity { get; set; }

        ///<summary>
        ///浏览类型(1:群空间 2：文章)
        ///</summary>
        [Column("TrailType", "浏览类型(1:群空间内容 2：文章)")]
        public int TrailType { get; set; }

        ///<summary>
        ///操作时间
        ///</summary>
        [Column("TrailDate", "操作时间")]
        public DateTime TrailDate { get; set; }

        ///<summary>
        ///离开时间
        ///</summary>
        [Column("AwayDate", "离开时间")]
        public DateTime AwayDate { get; set; }

        ///<summary>
        ///OpenID
        ///</summary>
        [Column("OpenID", "OpenID")]
        public string OpenID { get; set; }

        ///<summary>
        ///UnionID
        ///</summary>
        [Column("UnionID", "UnionID")]
        public string UnionID { get; set; }

        ///<summary>
        ///操作类别(1：转发 2：浏览 3：答题 4：评论 5：点赞，6：取消点赞)
        ///</summary>
        [Column("ActionType", "操作类别(1：转发 2：浏览 3：答题 4：评论 5：点赞，6：取消点赞)")]
        public int ActionType { get; set; }

    }
}